package Models;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class BarrelConditioning {
    private final SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy", Locale.US);
    private int barrelConditioningID;
    private double barrelOrigVol;
    private double barrelVolLeft;
    private boolean pkgyet;
    private String barrelBatch;
    private int barrelVesselID;
    private Date barrelDatePkg;
    private Date fillDate;
    
	public int getBarrelConditioningID() {
		return barrelConditioningID;
	}
	public void setBarrelConditioningID(int barrelConditioningID) {
		this.barrelConditioningID = barrelConditioningID;
	}
	public double getBarrelOrigVol() {
		return barrelOrigVol;
	}
	public void setBarrelOrigVol(double barrelOrigVol) {
		this.barrelOrigVol = barrelOrigVol;
	}
	public double getBarrelVolLeft() {
		return barrelVolLeft;
	}
	public void setBarrelVolLeft(double barrelVolLeft) {
		this.barrelVolLeft = barrelVolLeft;
	}
	public boolean isPkgyet() {
		return pkgyet;
	}
	public void setPkgyet(boolean pkgyet) {
		this.pkgyet = pkgyet;
	}
	public String getBarrelBatch() {
		return barrelBatch;
	}
	public void setBarrelBatch(String barrelBatch) {
		this.barrelBatch = barrelBatch;
	}
	public int getBarrelVesselID() {
		return barrelVesselID;
	}
	public void setBarrelVesselID(int barrelVesselID) {
		this.barrelVesselID = barrelVesselID;
	}
	public Date getBarrelDatePkg() {
		return barrelDatePkg;
	}
	public void setBarrelDatePkg(Date barrelDatePkg) {
		this.barrelDatePkg = barrelDatePkg;
	}
	public Date getFillDate() {
		return fillDate;
	}
	public void setFillDate(Date fillDate) {
		this.fillDate = fillDate;
	}
    
    public String getDisplayString(){
        return "Vessel: " 
            + Integer.toString(this.barrelVesselID)
            + " Batches("
            + this.getBarrelBatch()
            + ") - Fill Date: "
            + dateFormat.format(this.getFillDate());
    }
}
